home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
002
/
formit.arc
/
FORMITDC.BAT
< prev
Wrap
DOS Batch File
|
1984-09-25
|
3KB
|
78 lines
echo off
if not . == .%1 goto Parse
echo This batch file prints the FORMIT manual. It requires DOS 2.0 or higher.
:Instruct
echo
echo You will have to restart it, and specify what type of equipment you have.
echo
echo If you have an Epson FX printer, type "%0 FX".
echo
echo If you KNOW your printer doesn't
echo understand a form feed (^L), type "%0 TY".
echo
echo Otherwise, type "%0 ^L".
echo
echo
echo If you have an MS-DOS machine that is very different from the IBM (BIOS
echo non-compatible), add a " -M" after the printer specification.
echo (For example, "%0 FX -M".)
echo
goto Exit
:Parse
for %%f in (formit.com formit.doc) do if not exist %%f goto Fileless
for %%p in (. .-m .-M) do if .%2 == %%p goto Test
:Test
for %%p in (.-m .-M) do if .%2 == %%p if not exist formit-m.com goto NoM
for %%p in (FX fx Fx fX) do if %1 == %%p goto fx
for %%p in (^L ^l) do if %1 == %%p goto ^L
for %%p in (TY ty Ty tY) do if %1 == %%p goto ty
echo Bad parameter:
goto Instruct
:fx
echo This will take from about two minutes with a RAM disk, to about five
echo minutes with a floppy disk.
echo
pause
Formit%2 Formit.doc
goto Check
:^L
echo This will take from about two minutes with a RAM disk, to about five
echo minutes with a floppy disk.
echo
pause
Formit%2 Formit.doc;.ff
goto Check
:TY
echo This will take from about two minutes with a RAM disk, to about five
echo minutes with a floppy disk.
echo
pause
Formit%2 Formit.doc;.tt
:Check
if ErrorLevel 1 goto Print
echo
echo The file did not format correctly. If it is not because the disk or
echo directory is full, there may have been some error in transmission.
goto Exit
:Print
echo
echo The manual is 30 pages long. Hit break if you don't want to print it now.
echo
pause
copy Formit.Prn prn
goto Exit
:Fileless
echo
echo You cannot print the documentation without FORMIT.COM and FORMIT.DOC on
echo the default drive.
goto Exit
:NoM
echo
echo You cannot use the -M option without the file FORMIT-M.COM on the default
echo dive. If you do not have it, try again without the -M option.
echo ! If your computer is not an IBM, you may »need« FORMIT-M, and running
echo ! FORMIT may hang your system. Be sure you have physical copies (ie, not
echo ! on a RAM disk) before making the experiment.
:Exit
echo